#ifndef DECODER
#define DECODER

#include "codec.h"
extern "C"
{
#include <libavutil/avutil.h>
}

namespace lcf
{
    class Decoder : public Codec
    {
    public:
        bool Send(const AVPacket *pkt); // 发送解码
        bool Recv(AVFrame *frame);      // 获取解码
        bool Decode(AVPacket *srcPacket, AVFrame *dstFrame);
    };
}

#endif